package com.unicloud.medical.langchao.autoconfigure;

import com.unicloud.medical.oss.common.constant.OSSTypeConstant;
import org.springframework.context.ApplicationContextInitializer;
import org.springframework.context.ConfigurableApplicationContext;
import org.springframework.core.Ordered;

public class LangChaoApplicationContextInitializer implements ApplicationContextInitializer<ConfigurableApplicationContext>, Ordered {

    @Override
    public void initialize(ConfigurableApplicationContext applicationContext) {
        applicationContext.addBeanFactoryPostProcessor(new LangChaoBeanFactoryPostProcessor(applicationContext, OSSTypeConstant.LANG_CHAO));
    }

    @Override
    public int getOrder() {
        return Integer.MAX_VALUE;
    }
}
